package org.hdl.anima.transport;

import java.net.InetSocketAddress;

import org.hdl.anima.AppConf;

/**
 * 
 * @author qiuhd
 * @since  2014-7-24
 * @version V1.0.0
 */
public interface Endpoint {
	
	AppConf getConf();
	
	InetSocketAddress getLocalAddress();
	
	ChannelHandler getChannelHandler();
	
	void send(Object message) throws RemoteException;
	
	void close();
	
	void close(int timeout);
	
	boolean isClosed();
}

